﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace MvcApplication.Areas.Wijmo.Controllers
{
    public class WijmoController : Controller
    {
        //
        // GET: /Wijmo/Home/

        public ActionResult Index()
        {
            return View();
        }

        public ActionResult Calender()
        {
            return View();
        }

        public ActionResult ComboBox()
        {
            return View();
        }

        public ActionResult List()
        {
            return View();
        }

        public ActionResult Tooltip()
        {
            return View();
        }

        public ActionResult DemoList()
        {
            List<dynamic> list = new List<dynamic>();
            list.Add(new { id = "1", name = "Name 1" });
            list.Add(new { id = "2", name = "Name 2" });
            list.Add(new { id = "3", name = "Name 3" });
            list.Add(new { id = "4", name = "Name 4" });
            var result = new
                             {
                                 totalResultsCount = 4,
                                 geonames = list
                             };
            return Json(result, JsonRequestBehavior.AllowGet);
        }

        public ActionResult Accordion()
        {
            return View();
        }

        public ActionResult Dialog()
        {
            return View();
        }

        public ActionResult Tabs()
        {
            return View();
        }

        public ActionResult Menu()
        {
            return View();
        }

    }
}
